home *** CD-ROM | disk | FTP | other *** search
- head 1.2;
- access;
- symbols;
- locks
- dlorre:1.2; strict;
- comment @ * @;
-
-
- 1.2
- date 97.07.14.04.27.01; author dlorre; state Exp;
- branches;
- next 1.1;
-
- 1.1
- date 96.08.22.02.06.07; author dlorre; state Exp;
- branches;
- next ;
-
-
- desc
- @Oui.lib -- Object User Interface
- Projet créé en 1994
- Auteur: Dominique Lorre
- @
-
-
- 1.2
- log
- @*** empty log message ***
- @
- text
- @// $Id$
- #ifndef CLASS_GADGET_H
- #define CLASS_GADGET_H
-
- #ifndef EXEC_TYPES_H
- #include <exec/types.h>
- #endif
-
- #ifndef INTUITION_INTUITION_H
- struct Gadget ;
- struct Window ;
- #endif
-
- #ifndef CLASS_WINDOW_H
- class window ;
- #endif
-
- #ifndef CLASS_GADGETLIST_H
- class gadgetlist ;
- #endif
-
- // ========================================================================
- // ========================== GADGET CLASS ===============================
- // ========================================================================
-
- class gadget
- {
- protected:
- gadgetlist *glist ;
- void (window::*gfunc)(gadget *, unsigned long, unsigned short) ;
- public:
- long id ;
- Gadget *gad ;
- Window *w ;
- char key ;
- gadget(gadgetlist *gl, void (window::*func)(gadget *, unsigned long, unsigned short)) ;
- virtual ~gadget() {}
- void setfunc(void (window::*func)(gadget *, unsigned long, unsigned short)) ;
- virtual void action(unsigned long, unsigned short) ;
- virtual void select(BOOL sel) ;
- virtual void keystroke(BOOL shifted) ;
- void underkey(const char *s) ;
- };
-
- inline void gadget::setfunc(void (window::*func)(gadget *, unsigned long, unsigned short))
- {
- gfunc = func ;
- }
-
-
- #endif
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d1 1
- d42 1
- a42 1
- void underkey(STRPTR s) ;
- d44 6
- @
-